FROM harbor.nds.com/opt/openjdk:8-jdk-fonts-alpine-tini

# ENV TZ=Asia/Shanghai

# RUN apk update \
#     && apk add -U tzdata \
#     && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone \
#     && apk del tzdata

ADD ./target/canal-client-sync.jar /app/canal-client-sync.jar

ENTRYPOINT exec tini java -jar /app/canal-client-sync.jar  -e TZ="Asia/Shanghai" --java.security.egd=file:/dev/./urandom
